package com.drama.api.company.video.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
public class CompanyVideoSearchVO implements Serializable {
    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "视频ID")
    private String id;
    @ApiModelProperty(value = "所属公司ID[精确搜索]【默认当前登录商户ID】")
    private String companyId;
    @ApiModelProperty(value = "剧目ID【剧目查看详情时需要】")
    private String dramaId;
    @ApiModelProperty(value = "视频编号[模糊搜索]")
    private String videoRef;
    @ApiModelProperty(value = "视频状态(1已选取 2未选取)[精确搜索]")
    private Integer videoState;
    @ApiModelProperty(value = "视频名称[模糊搜索]")
    private String videoName;
    @ApiModelProperty(value = "上传开始时间(yyyy-MM-dd)")
    private String startDate;
    @ApiModelProperty(value = "上传结束时间(yyyy-MM-dd)")
    private String endDate;
    @ApiModelProperty(value = "页数")
    private Integer pageNum;
    @ApiModelProperty(value = "每页行数")
    private Integer pageSize;

    public Integer getPageNum() {
        if (pageNum == null) {
            pageNum = 1;
        }
        return pageNum;
    }

    public Integer getPageSize() {
        if (pageSize == null) {
            pageSize = 10;
        }
        return pageSize;
    }

}